const buf = new ArrayBuffer(8);
const a1 = new Uint8Array(buf);
const a2 = new Uint16Array(buf, 2, 2);
console.log(a1.length); // 8
console.log(a2.length); // 2
a2[0] = a2[1] = a2[2] = 65535;
console.log(a1); // Uint8Array(8) [ 0, 0, 255, 255, 255, 255, 0, 0]
